import type { TableProps } from "tdesign-vue-next";
import dayjs from "dayjs";

export const tableColumns = [
  {
    colKey: "expressId",
    title: "出运号",
    width: 200
  },
  {
    colKey: "orderId",
    title: "订单号",
    width: 220
  },
  {
    colKey: "customerEngName",
    title: "客户名称",
    width: 220
  },
  {
    colKey: "orderName",
    title: "订单名称",
    width: 220
  },
  {
    colKey: "ticketId",
    title: "发票号",
    width: 220
  },
  {
    colKey: "ticketDate",
    title: "发票日期",
    width: 220,
    cell: (h, { row }) => {
      return dayjs(row.ticketDate).format("YYYY-MM-DD HH:mm:ss");
    }
  },
  {
    colKey: "productsTotalNum",
    title: "合计出运商品数",
    width: 150
  }
] as TableProps["columns"];
